import sys
from optparse import OptionParser
from MainWindow import MainWindow
from PySide.QtCore import *
from PySide.QtGui import *

if __name__ == '__main__':
  parser = OptionParser(usage="Usage: %prog [options]")
  parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=True, help="Print lots of debug messages")
  parser.add_option("-c", "--config", dest="config", default="config.txt", help="Configuration file")
  (option, args) = parser.parse_args()
  config_file = option.config

  #TODO: Introduce a .bettyrc file in home directory for standard configuration

  app = QApplication(sys.argv)
  window = MainWindow(config_file)
  window.show()
  sys.exit(app.exec_())
